<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
        <script type="text/javascript" src="../angular.min.js"></script>
        <script src="http://cdn.bootcss.com/angular.js/1.3.0-beta.13/angular-sanitize.min.js"></script>
        <style>
            .red{ background:red;}
            .yellow{ background:yellow;}
        </style>
    </head>
    <body>
      <div ng-app="myApp">

          <div ng-controller="firstController">
              <div ng-bind="text"></div>
              <div ng-bind-html="text"></div>
        
          </div>
      </div>
      <script type="text/javascript">
        var app = angular.module('myApp',['ngSanitize']);
          app.controller('firstController',['$scope','$interval',function($scope,$interval){
              $scope.text = '<h1>hello</h1>';

          }]);


      </script>
       
    </body>
</html>